/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-12<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-12<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "SYS_REQUEST_RECORD_INFO")
public class SysRequestInfo implements Serializable {
    
    private static final long serialVersionUID = 6635618658479094373L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "REQUEST_ID")
    private Long requestId;
    
    @Column(name = "PAGE_NAME")
    private String pageName;
    
    @Column(name = "PAGE_ADDR",length = 128)
    private String pageAddress;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_TIME")
    private Date createTime;

    public Long getRequestId() {
        return requestId;
    }

    public void setRequestId(Long requestId) {
        this.requestId = requestId;
    }

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public String getPageAddress() {
        return pageAddress;
    }

    public void setPageAddress(String pageAddress) {
        this.pageAddress = pageAddress;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public SysRequestInfo() {
        
    }

    public SysRequestInfo(Long requestId, String pageName, String pageAddress, Date createTime) {
        this.requestId = requestId;
        this.pageName = pageName;
        this.pageAddress = pageAddress;
        this.createTime = createTime;
    }
    
    

    public SysRequestInfo(String pageName, String pageAddress, Date createTime) {
        this.pageName = pageName;
        this.pageAddress = pageAddress;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("{\"requestId\":");
        builder.append(requestId);
        builder.append(", \"pageName\":");
        builder.append(pageName);
        builder.append(", \"pageAddress\":");
        builder.append(pageAddress);
        builder.append(", \"createTime\":");
        builder.append(createTime);
        builder.append("}");
        return builder.toString();
    }
    
}
